<admintpl file="header" />
</head>

<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Stand/index')}">展位列表</a></li>
			<li><a href="{:U('Stand/add')}">新增展位</a></li>
		</ul>
		<form class="well form-search pd0" method="post"  id="form1">
			<table class="table table-condensed">
				<tbody>
					<tr>
						
						<td>
							是否轮播：
						</td>
						<td>
							<select class="select2-default" name="a.is_roll">
								<option value="" >全部</option>
								<option value="1" <if condition="$formget[a_is_roll] eq 1">selected</if> >否</option>
								<option value="2" <if condition="$formget[a_is_roll] eq 2">selected</if> >是</option>
							</select>
						</td>
						
						<td>
						</td>
						<td>
							<input type="submit" class="btn btn-primary" onclick="javascript:form1.action='{:U("Stand/index")}';" value="搜索" />
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>展位广告名称</th>
						<th>每天展费金币</th>
						<th>排序</th>
						<th>是否轮播</th>
						<th>创建时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<?php
						$is_roll=array('1'=>'否','2'=>'是');
					?>
					<foreach name="list" item="vo">
						<tr>
							<td>{$vo.id}</td>
							<td>
								<empty name="vo.link_name">
									暂无广告
									<else />
									{$vo.link_name}
								</empty></td>
							<td>{$vo.change_day}</td>
							<td>{$vo.listorder}</td>
							<td>{$is_roll[$vo['is_roll']]}</td>
							<td>{$vo.create_time}</td>
							<td>
								<a href="{:U('Stand/edit',array('id'=>$vo['id']))}">编辑</a> |
								<a href="{:U('Stand/delete',array('id'=>$vo['id']))}" msg-data="确认要删除吗？" class="js-ajax-delete">删除</a> 
							</td>
						</tr>
					</foreach>
				</tbody>
				<tfoot>
					<tr>
						<th width="50">ID</th>
						<th>展位广告名称</th>
						<th>每天展费金币</th>
						<th>排序</th>
						<th>是否轮播</th>
						<th>创建时间</th>
						<th>操作</th>
					</tr>
				</tfoot>
			</table>
			<div class="pagination">{$Page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>

</html>